find_package( Qt4 4.5
    COMPONENTS
        QtCore
        QtNetwork
        QtXml
    REQUIRED
)
include( ${QT_USE_FILE} )

set( SOURCES
    RoAbstractComponent.cpp
    RoAbstractModule.cpp
    RoComponent.cpp
    RoModule.cpp
    RoQuery.cpp
    RoStanzas.cpp
    RoXmlStream.cpp
)

set( HEADERS
    ../include/RoAbstractComponent.h
    ../include/RoAbstractModule.h
    ../include/RoComponent.h
    ../include/RoModule.h
    ../include/RoQuery.h
    ../include/RoStanzas.h
    ../include/RoXmlStream.h
)

qt4_automoc(
    ${SOURCES}
)

qt4_wrap_cpp( HEADERS_COMPILED
    ${HEADERS}
)

add_library( romashka SHARED
    ${SOURCES}
    ${HEADERS_COMPILED}
)

target_link_libraries( romashka
    ${QT_LIBRARIES}
)
